//
//  PosRegistCell.m
//  NewPro
//
//  Created by RYX on 2018/11/26.
//  Copyright © 2018年 何荧红. All rights reserved.
//

#import "PosRegistCell.h"

@interface PosRegistCell ()
{
    
    __weak IBOutlet UILabel *titleLa;
    __weak IBOutlet UILabel *detailLa;
}

@end

@implementation PosRegistCell

+ (instancetype)tempWithTableView:(UITableView *)tableView{
    
    PosRegistCell *cell = [tableView dequeueReusableCellWithIdentifier:@"CELL"];
    if (!cell) {
        
        cell = [self cell];
    }
    
    return cell;
}

+ (CGFloat)getHeight{
    
    UITableViewCell *cell = [self cell];
    return cell.frame.size.height;
}

+ (instancetype)cell{
    
    ClassName
    return [[[NSBundle mainBundle] loadNibNamed:className owner:self options:nil] objectAtIndex:0];
}

- (void)setTitle:(NSString *)title{
    
    titleLa.text = title;
}

- (void)setDetail:(NSString *)detail{
    
    detailLa.text = detail;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
